﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI.WebControls;

namespace soq964724
{
    public static class ContentPlaceHolderExtensions
    {
        public static bool ContainsControlsOrCodeBlock(this ContentPlaceHolder placeHolder)
        {
            if (placeHolder.Controls.Count > 0)
                return true;
            
            return placeHolder.Controls.IsReadOnly;
        }
    }
}
